<template>
  <ul>
    <li v-for="(item,index) in list" :key="index">
        <span>{{item}}</span>
        <slot :i="index" :val="item"></slot>
    </li>
  </ul>
</template>

<script setup>
 import { defineProps } from 'vue';
 const props = defineProps({
   list: Array
 })
</script>
<style lang="scss" scoped>
</style>